package com.zbkj.common.model.client.agent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * <p>
 * 用户扣点历史表
 * </p>
 *
 * @author CRMEB Team
 * @since 2025-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "eb_client_power_point_history", autoResultMap = true)
@ApiModel(value = "PowerPointHistory对象", description = "用户扣点历史表")
public class PowerPointHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "租户ID")
    @TableField("mer_id")
    private Integer merId;

    @ApiModelProperty(value = "模块")
    @TableField("module")
    private String module;

    @ApiModelProperty(value = "模块名称")
    @TableField("module_name")
    private String moduleName;

    @ApiModelProperty(value = "要显示的内容")
    @TableField("show_name")
    private String showName;

    @ApiModelProperty(value = "扣的点数")
    @TableField("cost_point")
    private BigDecimal costPoint;

    @ApiModelProperty(value = "模块ID")
    @TableField("module_id")
    private Integer moduleId;

    @ApiModelProperty(value = "音视频时长")
    @TableField("duration")
    private Integer duration;

    @ApiModelProperty(value = "是否删除，0-否，1-是")
    @TableLogic
    @TableField("is_del")
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;
} 